<%--
  Created by IntelliJ IDEA.
  User: aszer
  Date: 2016/11/5
  Time: 14:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
    HttpSession session1 = request.getSession();
    Object admin = session1.getAttribute("admin");
    if (admin == null) {
        response.sendRedirect("/admin/login.jsp");
    }
%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!-- Meta, title, CSS, favicons, etc. -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>点卡商城后台管理</title>
    <!-- jQuery -->
    <script src="<%=path %>/vendors/jquery/dist/jquery.min.js"></script>
    <!-- Bootstrap -->
    <link href="<%=path %>/vendors/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link href="<%=path %>/vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <!-- NProgress -->
    <link href="<%=path %>/vendors/nprogress/nprogress.css" rel="stylesheet">

    <!-- Custom Theme Style -->
    <link href="<%=path %>/build/css/custom.min.css" rel="stylesheet">


    <script>
        window.timeCard = {};
        window.timeCard.resize = function (h) {
            var re = function () {
                var wh = $(window).height() - $("#fixH").outerHeight() - $("#title").outerHeight() - 30;

                window.frames.info.height = Math.max(h, wh);
            };
            re();
            $(window).resize(re)
        };
        window.timeCard.modal = function (title, info) {
            $('#myModalLabel').text(title);
            $('#myModalBody').html(info);
            $('#myModal').modal('show');
        }
    </script>
</head>
<body class="nav-md">
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span
                        class="sr-only">Close</span></button>
                <h4 class="modal-title" id="myModalLabel">...</h4>
            </div>
            <div class="modal-body" id="myModalBody">
                ...
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-info" data-dismiss="modal">关闭</button>
            </div>
        </div>
    </div>
</div>
<div class="container body">
    <div class="main_container">
        <div class="col-md-3 left_col">
            <div class="left_col scroll-view">
                <div class="navbar nav_title" style="border: 0;"><a href="/admin/index.jsp" class="site_title">
                    <i class="fa fa-home"></i> <span>后台管理</span></a></div>

                <div class="clearfix"></div>

                <br/>

                <!-- sidebar menu -->
                <div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
                    <div class="menu_section">
                        <h3>管理面板</h3>
                        <ul class="nav side-menu">
                            <li><a><i class="fa fa-home"></i> 主页 <span class="fa fa-chevron-down"></span></a>
                                <ul class="nav child_menu">
                                    <li><a href="/admin/index/sysPro.jsp" target="win">系统信息</a></li>
                                    <li><a href="/" target="_blank">网站前台</a></li>
                                </ul>
                            </li>
                            <li><a><i class="fa fa-edit"></i> 用户管理 <span class="fa fa-chevron-down"></span></a>
                                <ul class="nav child_menu">
                                    <li><a href="/user/userManage.action" target="win">注册信息管理</a></li>
                                    <li><a href="/admin/user/userAdd.jsp" target="win">添加新用户</a></li>
                                    <li><a href="/user/userSearch.action" target="win">查找用户</a></li>
                                </ul>
                            </li>
                            <li><a><i class="fa fa-desktop"></i> 平台公告 <span class="fa fa-chevron-down"></span></a>
                                <ul class="nav child_menu">
                                    <li><a href="/notice/noticeManage.action" target="win">当前公告</a></li>
                                    <li><a href="/admin/notice/noticeAdd.jsp" target="win">发布公告</a></li>
                                </ul>
                            </li>
                            <li><a><i class="fa fa-table"></i> 员工管理 <span class="fa fa-chevron-down"></span></a>
                                <ul class="nav child_menu">
                                    <li><a href="/admin/adminManage.action" target="win">员工信息</a></li>
                                    <li><a href="/admin/admin/adminAdd.jsp" target="win">添加员工</a></li>
                                </ul>
                            </li>
                            <li><a><i class="fa fa-clone"></i>点卡管理 <span class="fa fa-chevron-down"></span></a>
                                <ul class="nav child_menu">
                                    <li><a href="/good/goodManage.action" target="win">商城点卡</a></li>
                                    <li><a href="/admin/good/goodAdd.jsp" target="win">添加点卡</a></li>
                                </ul>
                            </li>
                            <li><a><i class="fa fa-sitemap"></i>分类管理 <span class="fa fa-chevron-down"></span></a>
                                <ul class="nav child_menu">
                                    <li><a href="<%=path %>/class/classManage.action" target="win">分类信息</a></li>
                                    <li><a href="<%=path %>/admin/classification/classAdd.jsp" target="win">添加分类</a>
                                    </li>
                                </ul>
                            </li>
                            <li><a><i class="fa fa-file-text"></i></i>订单管理 <span class="fa fa-chevron-down"></span></a>
                                <ul class="nav child_menu">
                                    <li><a href="<%=path %>/order/orderManage.action" target="win">订单总览</a></li>
                                    <li><a href="<%=path %>/order/orderNew.action" target="win">未处理订单</a></li>
                                    <li><a href="<%=path %>/order/orderSend.action" target="win">未发货订单</a></li>
                                    <li><a href="<%=path %>/order/orderOld.action" target="win">历史订单</a>
                                    <li><a href="<%=path %>/admin/order/financeStatistics.jsp" target="win">出售情况</a>
                                    </li>
                                    </li>
                                </ul>
                            </li>
                        </ul>
                    </div>
                </div>
                <!-- /sidebar menu -->

                <!-- /menu footer buttons -->
                <div class="sidebar-footer hidden-small">
                    <a href="<%=path%>/admin/adminLogout.action" data-toggle="tooltip" data-placement="top" title="登出">
                        <span class="glyphicon glyphicon-off" aria-hidden="true"></span>
                    </a>
                </div>
                <!-- /menu footer buttons -->
            </div>
        </div>

        <!-- top navigation -->
        <div class="top_nav">
            <div class="nav_menu" id="top">
                <nav>
                    <div class="nav toggle">
                        <a id="menu_toggle"><i class="fa fa-bars"></i></a>
                    </div>

                    <ul class="nav navbar-nav navbar-right">
                        <li class="">
                            <a href="javascript:;" class="user-profile dropdown-toggle" data-toggle="dropdown"
                               aria-expanded="false">
                                ${sessionScope.admin.adminName}
                                <span class=" fa fa-angle-down"></span>
                            </a>
                            <ul class="dropdown-menu dropdown-usermenu pull-right">
                                <li><a href="javascript:;">帮助</a></li>
                                <li><a href="<%=path%>/admin/adminLogout.action"><i
                                        class="fa fa-sign-out pull-right"></i>登出</a></li>
                            </ul>
                        </li>
                    </ul>
                </nav>
            </div>
        </div>
        <!-- /top navigation -->

        <!-- page content -->
        <div class="right_col" role="main">
            <div class="">
                <div class="page-title" id="title">
                    <div class="title_left">
                        <h3>管理面板</h3>
                    </div>
                </div>
                <div class="clearfix" id="fixH"></div>
                <div class="row">
                    <div class="col-md-12 col-sm-12 col-xs-12">
                        <div class="x_panel" style="padding: 0;">
                            <iframe scrolling="auto" height="800" id="info" name="win" src="<%=path %>/admin/index/sysPro.jsp"
                                    style="width: 100%;border: none;"></iframe>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- /page content -->
    </div>
</div>

<!-- Bootstrap -->
<script src="<%=path %>/vendors/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- FastClick -->
<script src="<%=path %>/vendors/fastclick/lib/fastclick.js"></script>
<!-- NProgress -->
<script src="<%=path %>/vendors/nprogress/nprogress.js"></script>

<!-- Custom Theme Scripts -->
<script src="<%=path %>/build/js/custom.min.js"></script>
</body>
</html>

